<?php
//这个部分字体大小是37，加粗，浑厚，tt字母颜色值是0B00D9，day字母颜色值是E10601
session_start();

Header("Content-type: image/PNG");
$width=150;
$height=35;
$im = imagecreate($width,$height);
$back = ImageColorAllocate($im, 255,255,255);
imagefill($im,0,0,$back); // 背景

$font = ImageColorAllocate($im, 11,0,217);
$num=rand(0,$l-1);
if ( empty( $_GET['area'] ) ){
	$_GET['area'] = '上海';
}
$vcodes= addslashes($_GET['area']);
$x=0;
$y=30;
$fontTTF= "baidu.ttf";
imageTTFText($im, 27, 0, $x, $y, $font, $fontTTF, $vcodes);

ImagePNG($im);
ImageDestroy($im);

$_SESSION["verify"] = $vcodes;
?>
